﻿@model PhoneBilling.Models.Report8ResultModel
@{
    ViewBag.Title = "长途统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    function back() {
        history.go(-1); //后退1页  
    }  
</script>
@using (Html.BeginForm("Report8", "Statistics"))
{
    @Html.HiddenFor(m => m.SelectItem)
    @Html.HiddenFor(m => m.开始日期)
    @Html.HiddenFor(m => m.结束日期)
    @Html.Hidden("IsExport", true)
    <input type="button" value="返回" onclick="back()" />  
    <input type="submit" value="导出Excel" /> 
    <div class="input-text">
         @Html.LabelFor(m => m.总金额)
         @Html.DisplayFor(m => m.总金额)
    </div>
    <div>
        @{
    var grid = new WebGrid(source: Model.List, canPage: false);
        }
        @grid.GetHtml(
            alternatingRowStyle: "bg",
            columns: grid.Columns
            (
                    grid.Column("部门", "部门"),
                      grid.Column("分组", "分组"),
                        grid.Column("分机号码", "分机号码"),
                         grid.Column("国内时长", "国内时长"),
                        grid.Column("国内话费", "国内话费"),
                         grid.Column("国际时长", "国际时长"),
                         grid.Column("国际话费", "国际话费"),
                         grid.Column("总话费", "总话费")
            )
        )
    </div>
}
